///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                                   //
//   ##     ## ########  ########     ###    ##    ##    ######## ######## ########  ########   #######  ########    //
//   ##     ## ##     ## ##     ##   ## ##   ###   ##       ##    ##       ##     ## ##     ## ##     ## ##     ##   //
//   ##     ## ##     ## ##     ##  ##   ##  ####  ##       ##    ##       ##     ## ##     ## ##     ## ##     ##   //
//   ##     ## ########  ########  ##     ## ## ## ##       ##    ######   ########  ########  ##     ## ########    //
//   ##     ## ##   ##   ##     ## ######### ##  ####       ##    ##       ##   ##   ##   ##   ##     ## ##   ##     //
//   ##     ## ##    ##  ##     ## ##     ## ##   ###       ##    ##       ##    ##  ##    ##  ##     ## ##    ##    //
//    #######  ##     ## ########  ##     ## ##    ##       ##    ######## ##     ## ##     ##  #######  ##     ##   //
//                                                                                         -----------------------   //
//                                                                                         presented by FrozenSand   //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-------------------------------------------------------------------------------------------------------------------//
//--| GENERAL INFORMATION |------------------------------------------------------------------------------------------//
//-------------------------------------------------------------------------------------------------------------------//
//                                                                                                                   //
//   #1 - Try to keep CVAR values as short as possible to avoid experiencing "infostring length exceeded" errors     //
//        on your server which may lead to server startup failures                                                   //
//                                                                                                                   //
//   #2 - Everything after double slashes // is ignored by the server                                                //
//                                                                                                                   //
//   #3 - Some CVARs can only be set during server initalization and are therefore not displayed here. You can set   // 
//        them by specifying desired values as command line parameters before startup using: +set <cvar> <value>     //
//                                                                                                                   //
//   #4 - Although this configuration file is designed to be verbose to the point of being self-explanatory, only    //
//        change settings if you know what you are doing! Incorrect settings might lead to server instability and    //
//        can make the gameplay impossible altogether                                                                //
//                                                                                                                   //
//   #5 - Support can be found on www.urbanterror.info                                                               //
//                                                                                                                   //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


//---------------------------------------------------------
//  VISUAL IDENTIFIERS
//---------------------------------------------------------

set  sv_hostname                       "New Unnamed Server"   // Your server name here (#NOTE: not all the game browsers display color codes correctly)
set  sv_joinmessage           "Welcome to Urban Terror 4.3"   // Your join message here. It will be displayed to clients joining your server
set  g_motd         "Urban Terror, presented by FrozenSand"   // Your message of the day here, it is displayed on the loading screen while connecting


//---------------------------------------------------------
//  ADDITIONAL GAME BROWSER INFORMATION
//---------------------------------------------------------

sets " Admin"                                            ""   // Server administrator aka designated technical contributor
sets " Email"                                            ""   // Provide an email for technical support

//---------------------------------------------------------
//  AUTHENTICATION SYSTEM SETTINGS
//---------------------------------------------------------

sets auth_enable                                         "1"  // Set this to 0 to disable the authentication system (more information on www urbanterror info)
sets auth_notoriety                                      "0"  // Minimum notoriety level to be able to connect to your server. 0 allows everyone to join
set  auth_tags                                           "1"  // Set this to 1 to prevent clan tag thieves from joining your server
set  auth_cheaters                                       "1"  // Set this to 1 to block the officially banned cheaters from your server [coming soon]
set  auth_verbosity                                      "1"  // 0 = no authentication message to everyone when a player connects, 1 = message on the top of the screen, 2 = message in the chat box
set  auth_log                                            "1"  // Set this to 1 to draw the account information in the userinfo of each player in the server logs
sets auth_owners                                         ""  // Seperate group IDs with a space which can execute auth-rcon commands (more information on www.urbanterror.info)
sets auth_groups                                         ""   // Seperate group IDs with a space that will be autorized to join your server. Empty ("") means any player can connect

//---------------------------------------------------------
//  MASTER SERVERS SETTINGS
//---------------------------------------------------------

set  sv_master1                                          ""   // This one will be set automatically by the game-engine, so just leave it blank
set  sv_master2                   "master.urbanterror.info"   // Default = master.urbanterror.info
set  sv_master3                  "master2.urbanterror.info"   // Default = master2.urbanterror.info
set  sv_master4              "master.quake3arena.com:27950"   // Default = master.quake3arena.com
set  sv_master5                                          ""   // In the future.....


//---------------------------------------------------------
//  SERVER LOGGING SETTINGS
//---------------------------------------------------------

set  g_log                                      "games.log"   // Server logfile name (Default = "games.log")
set  g_logsync                                          "1"   // Enables real-time (unbuffered) log writing. Necessarry for 3rd party administration software
set  g_loghits                                          "0"   // Log every single hit. Creates very big logs. Necessary for proper hit-detection if you use a 3rd party administration software
set  g_logroll                                          "0"   // If set to 1, creates a new log every now and then: <4 digit number>_<logname>.log -> Leave disabled if using log-parsing additions
set  logfile                                            "0"   // Additional logging in seperate qconsole.log file. 0 = disabled, 1 = buffered, 2 = synced, 3 = appended


//---------------------------------------------------------
//  ADMINISTRATION SETTINGS
//---------------------------------------------------------

set  rconpassword                                        ""   // Set here the password to control the server remotely using rcon
set  g_referee                                          "0"   // Setting this to 1 will enable the referee commands
set  g_refpass                                           ""   // Set here the referee password. Setting an empty password also disables referees
set  g_refnoban                                         "0"   // Setting this to 1 will prevent refrees from banning players from the server
set  g_refNoExec                                        "0"   // Setting this to 1 will prevent refrees from using the 'exec' command
set  filterban                                          "1"   // Allows to ban players using the banlist.txt file


//---------------------------------------------------------
//  GENERAL SERVER SETTINGS
//---------------------------------------------------------

set  sv_sayprefix                               "console: "   // Prefix for /rcon say in-game messages. (Default = "console: ")
set  sv_tellprefix                         "console_tell: "   // Prefix for /rcon tell in-game messages. (Default = "console_tell: ")
set  sv_demonotice               "Smile! You're on camera!"   // Message to be printed when a player start in being recorded server-side (Empty means no message) 
sets sv_dlURL                            "urbanterror.info"   // Sets the address for auto-downloading. The client will try to download <sv_dlURL>/q3ut4/mapname.pk3. If your server is running ut4_coolmap and sv_dlURL is set to 'yoursite.com/maps', make sure the maps is hosted at http://www.yoursite.com/maps/q3ut4/ut4_coolmap.pk3. Leaving this set 'urbanterror.info' will make it use a map mirror with the most common maps on it
set  sv_allowDownload                                   "1"   // Allows clients to load *.pk3 files (maps) they not already have. Auto-download only works on ioUrbanTerror-clients, not quake3-clients.
set  sv_strictauth                                      "0"   // 1 = check for valid cdkey, this means ioUrbanTerror players will not be able to join
set  sv_pure                                            "1"   // Prevents players from loading modified *.pk3 files. (Default = 1)
set  sv_floodprotect                                    "2"   // Number of client commands to allow per second in order to prevent players from spamming multiple chat lines / binds (0 = unlimited). (Default: 2)
set  sv_maxclients                                     "16"   // Max number of clients allowed to connect to the server. Using more than 16 is not advised. It can cause lag and most maps are not built for it. Going over 24 can cause nasty bugs
set  sv_privateclients                                  "0"   // Amount of private slots. This amount of slots will be reserved for players who enter the right privatepassword
set  sv_privatepassword                                  ""   // Password to connect to the server using a provate slot
set  sv_timeout                                       "180"   // Seconds before a 'Connection Interrupted' player is dropped. Smaller values help removing 'zombies' in time, but be careful: slow clients may not able to finish loading maps before they get dropped if this value is set too low. (Default = 180)
set  sv_maxping                                         "0"   // Sets the upper ping limit at which players are still allowed to join. 0 means no limit (Default 0). (Default = 0)
set  sv_minping                                         "0"   // Sets the lower ping limit at which players are still allowed to join. 0 means no limit (Default 0). (Default = 0)
set  sv_maxrate                                         "0"   // Sets the maximum traffic per second the server will send per client (byte/s, 0 = 25000 = max). (Default = 0)
set  sv_minrate                                         "0"   // Sets the minimum traffic per second the server will send per client (byte/s, 0 = 25000 = max). (Default = 0)
set  sv_clientsPerIp                                    "3"   // Sets the maximum number of clients allowed to simultaneously connect from the same IP address
set  sv_reconnectlimit                                  "0"   // Sets the number of times a disconnected client can come back and reconnect during the same map

//---------------------------------------------------------
//  OTHER SERVER SETTINGS
//---------------------------------------------------------

set  g_password                                          ""   // Password for the server. Nothing = public.
set  g_armbands                                         "0"   // Determines the behaviour of the armband color. 0 = player's choice, set with cg_rgb, 1 = based on team color, 2 = assigned randomly by server
set  g_skins                                            "1"   // If set to 1 enable the use of the client side skin selection system. Using 0 means default back to Red and Blue teams
set  g_funstuff                                         "1"   // If set to 1 enable the use of funstuff on the server 
set  g_gear                                             ""    // List of weapons and items to disallow, using their letters. Check http://www.urbanterror.info/support/180-server-cvars/#1.2 to use the automatic g_gear generator.
set  g_allowvote                                "603981055"   // Bitmask that decides which votes are allowed and which not. Check http://www.urbanterror.info/support/180-server-cvars/#1.3 to find the correct number
set  g_failedvotetime                                 "300"   // Amount of seconds before someone can call another vote after another has failed
set  g_maxGameClients                                   "0"   // Max clients that can actually join the game. Other clients are forced to spectate. (0 = All)
set  g_allowchat                                        "2"   // Determines the behaviour of the chat. 0 = no chatting at all, 1 = teamchats only, 2 = all chats, 3 = captains only in matchmode (Default = 2)
set  g_deadchat                                         "2"   // Determines if alive players can see dead players messages. 0 = living players can not see dead players chat, 1 = living players see only team-messages from dead teammembers, 2 = living players also see normal chats from dead players
set  g_inactivity                                       "0"   // Time in seconds before a non-moving player will be kicked off the server
set  g_mapcycle                              "mapcycle.txt"   // Name of mapcycle-file, located in q3ut4 directory


//---------------------------------------------------------
//  GENERAL GAMEPLAY SETTINGS
//---------------------------------------------------------

set  g_gametype                                         "7"   // 0 = Free For All, 1 = Last Man Standing, 3 = Team DeathMatch, 4 = Team Survivor, 5 = Follow The Leader, 6 = Capture And Hold, 7 = Capture The Flag, 8 = Bomb Mode, 9 = Jump, 10 = Freeze Tag, 11 = Gun Game
set  g_instagib                                         "0"   // If set to 1, InstaGib mode will be turned on (Default = 0). Read more at http://www.urbanterror.info/support/177-game-types/#12
set  g_followstrict                                     "1"   // If set to 1, dead players cannot hunt enemies
set  g_warmup                                          "15"   // Amount of seconds before game starts when changed to a new map. Gives slower computers time to load before game starts
set  g_gravity                                        "800"   // Gravity Level, higher number = lower jumps (Default = 800, popular settings for 'moon mode' : 300, 100).
set  g_knockback                                     "1000"   // Knockback from a weapon, higher number = greater knockback. (Default = 1000)
set  g_removeBodyTime                                  "15"   // Time in seconds after which a body fades out from the game's environment
set  g_antiwarp                                         "1"   // Enable or disable antiwarp. This option smooths the movement of warping players (warping by cheat or packet loss due toa crappy connection, for instance when torrenting during playing). The warping player will experience stutters when this is enabled
set  g_antiwarptol                                     "50"   // Tolerance of the antiwarp in miliseconds. Higher = more tolerant. Low settings increase server load. (Default = 50)
set  g_shuffleNoRestart                                 "1"   // If set to 0 map will restart after shuffleteams
set  g_inactivityAction                                 "1"   // Specifies what to do when a player hit the inactivity time: 0 = kick, 1 = move to spectators
set  timelimit                                         "20"   // Time in minutes before map is over. (0 = never)
set  fraglimit                                          "0"   // Amount of points to be scored before map is over. (0 = never)


//---------------------------------------------------------
//  TEAM GAME SETTINGS
//---------------------------------------------------------

set  g_friendlyfire                                     "1"   // 0 = no friendlyfire, 1 = friendlyfire on, kick after too many TK's, 2 = friendlyfire on, no kicks
set  g_maxteamkills                                     "3"   // Amount of TK's before you get kicked when g_friendlyfire is 1
set  g_teamkillsforgettime                            "200"   // Amount of seconds before TK's are forgotten
set  g_teamautojoin                                     "0"   // Force players to autojoin on connect, instead of letting them spec untill they join themselves
set  g_teamforcebalance                                 "0"   // If on, you can't join a team when it has more players then the other one
set  g_autobalance                                      "1"   // If set to a value higher than 0, the gamecode will balance current teams every X minutes. In survivor modes (BOMB, TS) the team balancing is done on every round end. (Default = 0)
set  g_maintainteam                                     "1"   // When switching maps, players will stay in their team
set  g_nameRed                                       	""   // Name for the red team. Nothing = default team name
set  g_nameBlue                                      	""   // Name for the blue team. Nothing = default team name
set  g_swaproles                                        "0"   // When map is over, play it again with the teams swapped (recommended for bomb mode)

//---------------------------------------------------------
//  MATCH MODE SETTINGS
//---------------------------------------------------------

set  g_matchmode                                        "0"   // Matchmode is for matchplay. Features timeouts and ready-commands. (Default = 0)
set  g_timeouts                                         "3"   // Amount of timeouts that a team can do per map. (Default = 3)
set  g_timeoutlength                                  "240"   // Amount of seconds before a timeout expires. (Default = 240)
set  g_pauselength                                      "0"   // Length of a pause. This only affect the /rcon pause command. (Default = 0 = unlimited)
set  g_stratTime                                        "5"   // Strategy time in seconds at round start in Team Survivor and BOMB modes


//---------------------------------------------------------
//  FFA (0), TDM (3), CAH (6), CTF (7), GUN (11) SETTINGS
//---------------------------------------------------------

set  g_respawnprotection                                "2"   // Amount of seconds a spawning players is protected from damage
set  g_respawndelay                                     "5"   // Seconds before respawn, ignored when g_waverespawns is 1
set  g_forcerespawn                                    "20"   // Seconds before respawn is forced, even when the player did not press fire


//---------------------------------------------------------
//  LMS (1), TS (4), FTL (5) BOMB (8) GAMEPLAY SETTINGS
//---------------------------------------------------------

set  g_maxrounds                                        "0"   // Number of rounds before map is over. (0 = unlimited) 
set  g_roundtime                                        "2"   // Maximum minutes a round can take. (TS, LMS, BOMB, FTL)
set  g_survivorrule                                     "0"   // 0 = Teams don't get a point when time is up before everyone is dead. 1 = Team with most players left gets point
set  g_suddendeath                                      "0"   // When map is over and both teams have same amount of points, add another round

//---------------------------------------------------------
//  CAH (6), CTF (7) GAMEPLAY SETTINGS
//---------------------------------------------------------
set  capturelimit                                       "0"   // Amount of flag caps before map is over. 0 = unlimited
set  g_waverespawns                                     "1"   // If set to 1 enable waverespawns, meaning everybody in a team respawns at the same time
set  g_bluewave                                        "15"   // Seconds between blue team waverespawns, ignored when g_waverespawns is 0.
set  g_redwave                                         "15"   // Seconds between red team waverespawns, ignored when g_waverespawns is 0.

//---------------------------------------------------------
//  CAPTURE AND HOLD (6) GAMEPLAY SETTINGS
//---------------------------------------------------------

set  g_cahtime                                         "30"  // Interval in seconds of awarding points for flags in Capture and Hold gamemode


//---------------------------------------------------------
//  CAPTURE THE FLAG (7) GAMEPLAY SETTINGS
//---------------------------------------------------------

set  g_flagreturntime                                  "30"   // If a flag is dropped, it will be returned at base automatically after this amount of seconds. (Default = 30)
set  g_hotpotato                                        "1"   // When both flags are taken, they will explode after this amount of minutes. (Default = 2)
set  g_ctfunsubwait                                     "0"   // If set to 1 someone who unsubs (in matchmode) in wave CTF mode will wait the next wave to spawn. (Default = 0)


//---------------------------------------------------------
//  BOMB MODE (8) GAMEPLAY SETTINGS
//---------------------------------------------------------

set  g_bombdefusetime                                   "5"   // Seconds it takes to defuse bomb. (Default = 10)
set  g_bombexplodetime                                 "30"   // Seconds before bomb goes off after planting. (Default = 40)
set  g_bombplanttime                                    "3"   // Seconds it takes to plant the bomb. (Default = 3)


//---------------------------------------------------------
//  JUMP (9) GAMEPLAY SETTINGS
//---------------------------------------------------------

set  g_walljumps                                        "3"   // Maximum amount of walljumps a player is allowed to do (min = 3, max = 100). (Default = 3)
set  g_nodamage                                         "1"   // If set to 1 players will not experience damage from MOD_FALLING and MOD_TELEFRAG. (Default = 1)
set  g_stamina                                          "1"   // Stamina behavior: 0 = default, 1 = regain (refill when player stops), 2 = infinite stamina. (Default = 0)
set  g_allowGoto                                        "1"   // If set to 1 enable /goto and /allowgoto game commands (teleporting between players)
set  g_allowPosSaving                                   "1"   // If set to 1 allow players to use /savePos and /loadPos commands. (Default = 0)
set  g_persistentPositions                              "1"   // If set to 1 save positions will be kept upon player disconnect. (Default = 0)
set  g_jumpruns                                         "0"   // Maximum number of jump run attempts a player is allowed to make when g_matchmode is set to 1. (Default = 0 = unlimited)
set  g_novest                                           "1"   // If set to 1 removes the kevlar from all the players and gives a medkit instead if not already equipped. (Default = 1)


//---------------------------------------------------------
//  FREEZE TAG (10) GAMEPLAY SETTINGS
//---------------------------------------------------------

set  g_thawTime                                         "6"   // Time in seconds a player takes to thaw back an ally in game
set  g_meltdownTime                                     "60"  // Time in seconds before a player meltsdown back alive

//---------------------------------------------------------
//  GUN GAME (11) GAMEPLAY SETTINGS
//---------------------------------------------------------
set  g_hardcore                                         "0"   // If set to 1 the gun order is different and getting killed by a lower level will downrank you 1 level (Default = 0)
set  g_randomorder                                      "0"   // If set to 1 the gun order will be randomly generated on map load (Default = 0)

//---------------------------------------------------------
//  ANTICHEAT SETTINGS
//---------------------------------------------------------
//pb_sv_enable                                                // To enable Punkbusters, remove the // at the beginning of this line (only works when starting the server as MOD of Quake 3 Arena, not the Quake3-UrT client)


//---------------------------------------------------------
//  EXEC CONFIRMATION
//---------------------------------------------------------

map  ut4_casa                                                 // What map to start with?
